/* 剪裁图片标签样式 */
img-crop {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  overflow: hidden;
}

img-crop canvas {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

.cropArea {
  background: #E4E4E4;
  overflow: hidden;
  width:500px;
  height:350px;
}

.croppedImg {
  width: 660px;
  height: 660px;
  padding: 10px;
  border: 2px dashed gray;
  zoom: 0.3;
}


/* 上传图片标签样式 */
.img-uploader {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
  border: 1px dashed #d9d9d9;
  border-radius: 4px;
  cursor: pointer;
}


/* 展示图片标签样式 */
.img-container {
  border: 1px solid #e8e8e8;
  margin-right: 4px;
  position: relative;
}

.img-container .img-info::before {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,.5);
  opacity: 0;
  transition: all .3s;
  content: " ";
}

.img-container:hover .img-info::before {
  opacity: 1;
}

.img-container img,
.img-container .img-info img {
  width: 70px;
  height: 70px;
}

.img-container .img-tips {
  position: absolute;
  top: 0;
  right: 0;
  background: white;
}

.img-container .img-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  white-space: nowrap;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: all .3s;
}

.img-container:hover .img-actions {
  opacity: 1;
}

.img-container .img-actions i {
  margin: 0 4px;
  color: #fff;
  cursor: pointer;
}